package com.keeping.aiimagery.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.keeping.aiimagery.entity.ChatRoom;

import java.util.List;

/**
 * Created By Ranger on 2023/4/4.
 */
public interface ChatRoomService extends IService<ChatRoom> {
    
    /**
     * 获取用户聊天室
     * @param userId
     * @return
     */
    List<ChatRoom> getRoomByUserId(Long userId);

    /**
     * 新增聊天室
     * @param id
     * @param userId
     * @param roomName
     * @return
     */
    boolean saveRoom(String id,String userId,String roomName);

    void delRoomById(String roomId);

    void modifyRoomById(String roomId, String roomName);
}
